﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopTaohuaItemPVPair : BaseObject
    {
        //begin
        public TopTaohuaItemPVPair(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private TopTaohuaCateProp _TaohuaCateProp;
        public TopTaohuaCateProp TaohuaCateProp
        {
            get
            {
                return _TaohuaCateProp;
            }
            set
            {
                SetPropertyValue("TaohuaCateProp", ref _TaohuaCateProp, value);
            }
        }
        [Association("TaohuaItemPVPairTaohuaCatePropValues", typeof(TopTaohuaCatePropValue))]
        public XPCollection TaohuaCatePropValues
        {
            get
            {
                return GetCollection("TaohuaCatePropValues");
            }
        }
        private TopTaohuaItem _TaohuaItem;
        [Association("TaohuaItemTaohuaItemPvPairs", typeof(TopTaohuaItem))]
        public TopTaohuaItem TaohuaItem
        {
            get
            {
                return _TaohuaItem;
            }
            set
            {
                SetPropertyValue("TaohuaItem", ref _TaohuaItem, value);
            }
        }
        //end

    }
}
